﻿<UserControl x:Class="FlickrSample.View.User.UserDetailView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Common="clr-namespace:FlickrSample.View.Common" mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" Width="480">
    
    <Grid x:Name="LayoutRoot">
    	
        <Image Source="{Binding User.ProfilePictureUrl}" Stretch="UniformToFill" Margin="0,-1,0,0" Opacity="0.195" />
        <StackPanel Orientation="Vertical" d:LayoutOverrides="Height">
        	<TextBlock TextWrapping="Wrap" Text="Sets" Style="{StaticResource TitleTextBlock}"/>
            <ListBox SelectedItem="{Binding SelectedSet, Mode=TwoWay}" Style="{StaticResource NiceListbox}" ItemsSource="{Binding PhotoSets}" Background="{x:Null}" Foreground="White">
        		<ListBox.ItemTemplate>
        			<DataTemplate>
        				<TextBlock Text="{Binding Title}" Style="{StaticResource NormalTextBlock}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
        			</DataTemplate>
        		</ListBox.ItemTemplate>
        	</ListBox>
        </StackPanel>
    </Grid>
</UserControl>
